package com.ybkj.daijia.server.service;

import com.ybkj.daijia.server.model.DriverChoseLevel;

/**
 * @author Shine
 */
public interface DriverChoseLevelService {

    /**
     * 保存司机提成信息
     *
     * @param area
     * @return
     */
    public DriverChoseLevel insertRecord(DriverChoseLevel driverChoseLevel);

    /**
     * 根据主键更新提成信息
     *
     * @param driverLevel
     * @return
     */
    public DriverChoseLevel updateByPrimaryKey(DriverChoseLevel driverChoseLevel);

    /**
     * 根据主键查询司机提成信息
     *
     * @param id
     * @return
     */
    public DriverChoseLevel findByDriverAndLevelAndCompany(Long driverId, Long driverLevelId,
        Long companyId);

    public DriverChoseLevel findByDriverAndCompany(Long driverId, Long companyId);

    /**
     * 根据主键删除司机提成信息
     *
     * @param driverLevel
     */
    public void delete(Long driverId, Long driverLevelId);


    /**
     * 根据提成级别删除提成详情
     *
     * @param driverLevelId
     */
    public void deleteByDriver(Long driverId);

    /**
     * 根据提成级别删除提成详情
     *
     * @param driverLevelId
     */
    public void deleteByDriverLevel(Long driverLevelId);


}
